package designmodel.handler.raiseSalary;

import java.util.StringJoiner;

/**
 * OA申请对象
 *
 * @author scylla
 * @version V1.0
 * @project echo -java-base
 * @title OA申请对象
 * @package designmodel.handler.raiseSalary
 * @since 2022 /5/19 6:26 下午
 */
public class OARequest {

    /**
     * @Description 1 请假 2 加薪 3 待扩展
     * @Author chentl
     * @Create: 2022/5/19 6:34 下午
     */
    private String oaType;

    /**
     * @Description 申请内容
     * @Author chentl
     * @Create: 2022/5/19 6:34 下午
     */
    private String applyContent;

    /**
     * @Description 申请数量
     * @Author chentl
     * @Create: 2022/5/19 6:35 下午
     */
    private int num;

    public OARequest(String oaType, String applyContent, int num) {
        this.oaType = oaType;
        this.applyContent = applyContent;
        this.num = num;
    }

    /**
     * Gets oa type.
     *
     * @return the oa type
     */
    public String getOaType() {
        return oaType;
    }

    /**
     * Sets oa type.
     *
     * @param oaType the oa type
     */
    public void setOaType(String oaType) {
        this.oaType = oaType;
    }

    /**
     * Gets apply content.
     *
     * @return the apply content
     */
    public String getApplyContent() {
        return applyContent;
    }

    /**
     * Sets apply content.
     *
     * @param applyContent the apply content
     */
    public void setApplyContent(String applyContent) {
        this.applyContent = applyContent;
    }

    /**
     * Gets num.
     *
     * @return the num
     */
    public int getNum() {
        return num;
    }

    /**
     * Sets num.
     *
     * @param num the num
     */
    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", OARequest.class.getSimpleName() + "[", "]")
                .add("oaType='" + oaType + "'")
                .add("applyContent='" + applyContent + "'")
                .add("num=" + num)
                .toString();
    }
}
